.travel-home {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  background: #f9f9f9;
}


.search-container {
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  padding: 8px 0;
}

/* 瀑布流布局样式 */
.travel-masonry-grid {
  display: flex;
  width: 100%;
  margin-left: -8px;
  /* 减小列间距 */
}

.travel-masonry-grid_column {
  padding-left: 8px;
  /* 减小列间距 */
  background-clip: padding-box;
  width: 50% !important;
  /* 确保每列宽度相等 */
}

/* 游记卡片样式 */
.travel-card {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  break-inside: avoid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.travel-card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* 调整图片比例，使卡片看起来更加统一 */
.travel-card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  will-change: opacity;
  transition: opacity 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* 图片预加载占位符优化 */
.image-placeholder {
  background-color: #f0f0f0;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 优化图片容器 */
.travel-card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  transform: translateZ(0);
}

/* 图片加载失败时的样式 */
.image-fallback {
  width: 100%;
  height: 150px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* 卡片内容区域样式 */
.travel-card-content {
  padding: 12px;
}

/* 卡片标题样式 */
.travel-card-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #333;
}

/* 作者信息样式 */
.travel-card-author {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.travel-card-author span {
  margin-left: 8px;
  font-size: 14px;
  color: #666;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 卡片底部信息样式 */
.travel-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 搜索容器样式优化 */
.search-container {
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 加载更多区域样式 */
.loading-more {
  padding: 20px 0;
  text-align: center;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.loading-indicator span {
  margin-right: 8px;
}

/* 加载中和错误状态容器样式 */
.loading-container {
  text-align: center;
  padding: 40px 0;
}

.error-container {
  text-align: center;
  padding: 30px 0;
  color: #ff3141;
}
